.settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
}

.settings-modal {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: settingsSlideIn 0.3s ease-out;
}

@keyframes settingsSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid #e9ecef;
}

.settings-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #f8f9fa;
  color: #333;
}

.settings-content {
  padding: 32px;
}

.setting-section {
  margin-bottom: 32px;
}

.setting-section:last-child {
  margin-bottom: 0;
}

.setting-section h3 {
  margin: 0 0 16px 0;
  font-size: 1.2rem;
  color: #333;
  font-weight: 500;
}

/* 快捷键设置样式 */
.shortcut-setting {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
}

.setting-item {
  margin-bottom: 16px;
}

.setting-label {
  display: block;
  font-size: 14px;
  color: #495057;
  margin-bottom: 8px;
  font-weight: 500;
}

.shortcut-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  justify-content: flex-end;
}

.shortcut-tips {
  border-top: 1px solid #dee2e6;
  padding-top: 16px;
  margin-top: 16px;
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #6c757d;
  line-height: 1.4;
}

.tip-item:last-child {
  margin-bottom: 0;
}

.tip-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.save-path-info {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
}

.current-path {
  margin-bottom: 20px;
}

.path-label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.path-value {
  display: block;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 13px;
  color: #495057;
  word-break: break-all;
  line-height: 1.4;
}

.path-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.path-actions button {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.path-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.path-actions .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.path-actions .btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transform: translateY(-1px);
}

.path-actions .btn-secondary {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
}

.path-actions .btn-secondary:hover:not(:disabled) {
  background: #e9ecef;
  transform: translateY(-1px);
}

.setting-description ul {
  margin: 0;
  padding-left: 20px;
  color: #666;
  line-height: 1.6;
}

.setting-description li {
  margin-bottom: 8px;
}

.setting-description li:last-child {
  margin-bottom: 0;
}

.settings-footer {
  padding: 20px 32px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
}

.settings-footer button {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-footer button:hover {
  background: #e9ecef;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .settings-modal {
    width: 95%;
    margin: 20px;
  }
  
  .settings-header,
  .settings-content,
  .settings-footer {
    padding: 20px;
  }
  
  .path-actions {
    flex-direction: column;
  }
  
  .path-actions button {
    width: 100%;
    justify-content: center;
  }
}